<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of ConsultConstant
 *
 * @author lzx
 */
class ConsultConstant {
    //put your code here
    public static function getConsultTypeList(){
        $translate= Zend_Registry::get('Zend_Translate');
        $expect=array(
            1=>$translate->_('productConsult'),
            2=>$translate->_('logisticsDistriBution'),
            3=>$translate->_('payment'),
            4=>$translate->_('collegeDelivery'),
            5=>$translate->_('warrantyInvoice')
        );
        return $expect;
    }
    
    public static function getConsultType($key){
        $expect = ConsultConstant::getConsultTypeList();
        return $expect[$key];
    }
    
    public static function getQueryStatusList(){
        $translate = Zend_Registry::get('Zend_Translate');
        $expect=array(
            1=>$translate->_('published'),
            2=>$translate->_('replied'),
            3=>$translate->_('evaluated')
        );
        return $expect;
    }
    
    public static function getQueryStatus($key){
        $expect = ConsultConstant::getQueryStatusList();
        return $expect[$key];
    }
    
    
}
?>
